import Vue from 'vue';
import Router from 'vue-router';
const Login = () => import('@/components/Login/Login')
// const Main = () => import('@/components/Main/Main')
// 按需导入 路由懒加载
// import Login from '@/components/Login/Login';
import Main from '@/components/Main/Main';
Vue.use(Router);
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/main',
      name: 'Main',
      component: Main,
      children: Main.children
    }
  ]
});
